//
//  UIView+Extend.h
//  MexicoLoan
//
//  Created by WXP on 2025/2/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extend)


// 判断是否显示在屏幕上
- (BOOL)isShowInScreen;

// 移除全部视图
- (void)removeAllSubViews;

// 获取获取所在vc
- (UIViewController *)fetchVC;

// views 组合
+ (instancetype)initWithViews:(NSArray *)ary;
+ (instancetype)initWithViews:(NSArray *)ary width:(CGFloat)width;

// 获取第一响应者
- (UIView *)fetchFirstResponder;

// 缩放动画
- (void)addClickAnimate;
- (void)addClickAnimateWithScale:(CGFloat)scale;

@end

NS_ASSUME_NONNULL_END
